<template>
	<view>
		<view class="u-content">
			<u-parse :content="information.infoContext"></u-parse>
		</view>
	</view>
</template>

<script>
	import {
		schoolInfo
	} from '@/common/api/homePage.js'
	export default {
		data() {
			return {
				id: '', // 院校资讯信息
				information: {},
			}
		},
		onLoad(option) {
			if (option) {
				this.id = option.id
				this.getdetail()
			}
		},
		methods: {
			getdetail() {
				uni.showLoading({
					title: '加载中'
				});
				schoolInfo(this.id).then(res => {
					if (res.data.code == 200) {
						this.information = res.data.data
					}
					setTimeout(() => {
						uni.hideLoading();
					}, 500)
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.u-content {
		padding: 24rpx;

		image {
			max-width: 100%;
		}
	}
</style>